package com.admin.kotlintest.utils;

import android.content.Context;
import android.util.Log;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

/**
 * Created by 吴昶 on 2018/4/11.
 */

public class ImageUtils {

    public static void GlideLoadImage(Context context, String url, ImageView imageView,int error,int placeholder){
        Glide.with(context)
                .setDefaultRequestOptions(new RequestOptions().error(error).placeholder(placeholder))
                .load(url)
                .into(imageView);
    }
}
